
// http://webapitest.zxjztech.com/cloud/third/oss/getWatermarkFile/1632680013643587584
// cloud/third/oss/getWatermarkFile

/**
 * 校验规则集合
 *
 * 返回值为布尔  true 为检验通过   false 为校验失败
 */
const ruleList = [
  (url)=>{
    const key='cloud/third/oss/getWatermarkFile'
    if(url.indexOf(key)>=0){
      return false
    }
    return true
  },
]

/**
 * 加水印的校验规则
 * @param {*} url
 * @returns true 校验通过  false 校验不通过
 */
const ruleFun = (url)=>{
  const resArr = []
  ruleList.forEach(itemFun=>{
    resArr.push(itemFun(url))
  })
  if(resArr.indexOf(false)>=0){
    return false
  }
  return true
}

export default ruleFun
